import java.util.ArrayList;

public class Action {

    private String nomDeLAction;
    private ArrayList<String> args;

    public Action(String nom, ArrayList<String> args){
	nomDeLAction = nom;
	this.args = args;
    }

    public String toString(){
	//String resultat = nomDeLAction;
    String resultat = "";
	for(int i = 0 ; i < args.size() ; i++){
	    resultat = resultat + " ";// + args.get(i);
	}
	return resultat;
    }

    public String getNom(){
	return nomDeLAction;
    }
    
    public String getNIemeArg(int i){
	return args.get(i);
    }

    public int getNbArg(){
	return args.size();
    }
}
